﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls.Primitives;
using Zero.UControl.Base.Enums;

namespace Zero.UControl.Base.Helper
{
    public static class TabControlHelper
    {
        public static readonly DependencyProperty HeaderPlacementProperty =
            DependencyProperty.RegisterAttached(
                "HeaderPlacement",
                typeof(PlacementType),
                typeof(TabControlHelper),
                new PropertyMetadata(PlacementType.Top));

        public static void SetHeaderPlacement(DependencyObject element, PlacementType value)
        {
            element.SetValue(HeaderPlacementProperty, value);
        }

        public static PlacementType GetHeaderPlacement(DependencyObject element)
        {
            return (PlacementType)element.GetValue(HeaderPlacementProperty);
        }

    }
}
